import request from "@/utils/request";

// 获取好友
export const getFriend = () => {
    return request({
        method: 'get',
        url: '/message/userList',
        headers: {
            isToken: true
        },
    })
}

// 获取聊天信息
export const getChatMsg = (toId) => {
    return request({
        method: 'get',
        url: `/message/history/${toId}`,
        headers: {
            isToken: true
        }
    })
}